<template>
  <jb-crud-page ref="pageRef" searchUrl="/aiApp/getFuncByAppId" :conditions-align="'start'"
                :searchConditions="pageConditions"
                :pager="false"
                :resetBtnShown="false"
                :searchBtnShown="false"
                >
    <template #default="{list,tableStartIndex}">
      <jb-table
          :data="list"
          :start-index="tableStartIndex"
      >
        <jb-column type="seq" title="序号" width="60" fixed="left"></jb-column>
        <jb-column
            field="sn"
            title="编号"
            min-width="160"
            fixed="left"
        ></jb-column>
        <jb-column
            field="briefInfo"
            title="Function描述"
            min-width="160"
        ></jb-column>
        <jb-column
            field="serviceClass"
            title="Service方法"
            min-width="300"
        ></jb-column>

       <!-- <jb-column
            title="操作"
            width="120"
            fixed="right"
        >
          <template #default="{ row }">
            <jb-btn
                type="error"
                class="mx-8px"
                :icon="Icons.DELETE"
                secondary
                circle
                :confirmText="'确认删除此文件？'"
                :url="`/aiAppLink/del/${row.id}`"
                @confirm="pageRef.loadData()"
            />
          </template>
        </jb-column> -->
      </jb-table>


    </template>
  </jb-crud-page>
</template>

<script setup>
import {useResetableData} from "@/hooks/common/use-resetable-data.js";
import {onMounted,ref} from "vue";
import {Icons} from "@/constants/index.js";

const props = defineProps({
  appId: String
})

const pageRef = ref(null)
const pageConditions = useResetableData({
  appId: props.appId,
})

</script>


<style scoped>

</style>